// 自定义生成字体大小
const fontSize = () => {
  const fontObj = {}
  for (let i = 10; i < 200; i += 2) {
    fontObj[i] = i + 'rpx'
  }
  return fontObj
}
const generateOpacity = () => {
  const OpacityObj = {}
  for (let i = 10; i < 100; i += 5) {
    OpacityObj[i] = i / 100
  }
  return OpacityObj
}
// 自定义生成圆角rpx
function generateRadius() {
  const maxRadius = 50
  const radius = {}
  for (let index = 1; index <= maxRadius; index++) {
    const radiusItem = index * 2
    radius[radiusItem] = `${radiusItem}rpx`
  }
  return radius
}
// 自定义生成层级zindex
function generateZindex() {
  const zindexObj = {}
  for (let index = 0; index <= 100; index += 10) {
    zindexObj[index] = index
  }
  return zindexObj
}
function generateSpacing() {
  const maxSpacing = 200
  const spacing = {}
  for (let index = 1; index <= maxSpacing; index++) {
    const spacingItem = index * 2
    spacing[spacingItem] = `${spacingItem}rpx`
  }
  return spacing
}
module.exports = {
  fontSize: fontSize(),
  opacityConfig: generateOpacity(),
  radiusconfig: generateRadius(),
  zindexConfig: generateZindex(),
  generateSpacing: generateSpacing(),
}
